'use strict';

const Controller = require('egg').Controller;

class ErrorController extends Controller {
  async index(code) {
    const indexData = {
      title: '红塔期货-页面出错',
      errorCode: code,
    };
    await this.ctx.render('/error/error.njk', indexData);
  }
}

module.exports = ErrorController;
